import { createApp } from 'vue';
import Vue from 'vue';
import App from './App.vue';
import router from '@/router';
import { setupStore } from '@/store';
import { setupDirective } from '@/directive';
import api from '@/api/api.ts';
import '@/permission';
import lodash from 'lodash';
// import 'amfe-flexible';

// 本地SVG图标
import 'virtual:svg-icons-register';
// 国际化
import i18n from '@/lang/index';
// 样式
import 'element-plus/theme-chalk/dark/css-vars.css';
import '@/styles/index.scss';
import 'uno.css';
import Particles from 'particles.vue3';
import "animate.css/animate.min.css";
import vuetyped from 'vue3typed';
import infiniteScroll from 'vue3-infinite-scroll-better';
const app = createApp(App);
setupDirective(app);
setupStore(app);
const baseURL = 'https://wireai.com/';  
app.config.globalProperties.$baseurl = baseURL;
app.provide('$baseurl', baseURL);
app.provide('$base', api);
app.provide('$router', router);
app.provide('$_', lodash);
app.use(router).use(i18n).use(Particles).use(infiniteScroll).mount('#app');
